package github.flandre.examplemod.core.init;

import github.flandre.examplemod.common.entity.ExampleEntity;
import github.flandre.examplemod.examplemod;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

import javax.swing.text.html.parser.Entity;

public class EntityInit {
    public static final DeferredRegister<EntityType<?>> ENCHANTS = DeferredRegister.create(ForgeRegistries.ENTITIES, examplemod.MODID);

    public static final RegistryObject<EntityType<ExampleEntity>> EXAMPLE_ENTITY = ENCHANTS.register(
            "example_entity",
            ExampleEntity::getEntityType);
    //ExampleEntityModel模组是由模组生成
    //ExampleEntityRender实体渲染
    //实体的注册在EntityInit中
    //实体的渲染在event ClientEvent中
    //实体的属性在event AttributesSetEvent中
    //实体的生成在EntitySpawnEvent
    //实体的蛋在ItemInit中 还需要个json文件

}
